package com.farm.common.utils;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class PageUtils implements Serializable {
    private static final long serialVersionUID = 1L;
    private int total;
    private List<?> rows;
    private int currentPage;

    public PageUtils(int total, int currentPage, List<?> list) {
        this.total = total;
        this.currentPage = currentPage;
        this.rows = list;
    }


    public PageUtils(List<?> list, int total) {
        this.rows = list;
        this.total = total;
    }

}
